package com.v.im.businessapi.api;

import com.v.im.businessapi.dto.paramDTO.ImUserParamDTO;
import com.v.im.businessapi.dto.resultDTO.ImUserResultDTO;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.http.MediaType;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;

/**
 * @author wym
 * @create 2019-01-29 11:25
 **/
@Api(value = "asdadassad", description = "用户信息增、删、查、改", tags = "user")
public interface ImUserInfoServiceAPI {

    @GetMapping("/user/name/{userName}")
    ImUserResultDTO getImUserByUserName(@PathVariable("userName") String userName);

    @PostMapping("/user")
    Boolean saveUser(@RequestBody ImUserParamDTO imUserParamDTO);

    @GetMapping("/user/{userIds}")
    List<ImUserResultDTO> getImUserResults(@PathVariable("userIds") String userIds);

}
